package com.recruit.service;

import com.recruit.dao.AdminLoginDao;
import com.recruit.entity.Admin;

import java.sql.SQLException;
/****
 * author:丁文彬
 * time：2020.9.25
 */

public class AdminLoginService {
    //dao层
    private AdminLoginDao adminLoginDao = new AdminLoginDao();
    Admin admin = null;

    //管理员的登录
    public Admin AdminLogin(String username,String password){
        try {
            admin = adminLoginDao.selectUserByUsernameAndPassword(username, password);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return admin;
    }



}
